package com.oocl.euc.authentication;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HomeController {

    @RequestMapping(value = {"/home", "/", "/secured/home"}, method = {RequestMethod.GET, RequestMethod.POST})
    public String home() {
        return "index";
    }

    @RequestMapping("/secured/hello")
    @ResponseBody
    public String hello() {
        return "secured resource";
    }
}
